﻿using System;

class RabbitProblem
{
    static void Main(string[] args)
    {
        Console.WriteLine("兔子繁殖问题（斐波那契数列）");
        Console.WriteLine("请输入要计算的月数：");

        if (int.TryParse(Console.ReadLine(), out int months) && months > 0)
        {
            Console.WriteLine($"\n前{months}个月的兔子对数：");

            long a = 1, b = 1; 

            for (int i = 1; i <= months; i++)
            {
                if (i <= 2)
                {
                    Console.WriteLine($"第{i}个月: 1 对");
                }
                else
                {
                    long current = a + b;
                    Console.WriteLine($"第{i}个月: {current} 对");
                    a = b;
                    b = current;
                }
            }
        }
        else
        {
            Console.WriteLine("请输入有效的正整数！");
        }
    }
}